package com.itshizhan.demo01.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Random;

/**
 * @author itshizhan
 * @email 370424110@qq.com
 * @date 2021-08-05
 */
@RestController
public class TestController {
    @GetMapping("/test")
    public String sayHello() throws InterruptedException {
        Thread.sleep(new Random().nextInt(5) * 1000);
        return "Hi Test";
    }
}
